package com.ipartek.pruebas.bbddaccessP10;

import java.sql.*;

//ODBCAccountDAO implementation of the 
//AccountDAO interface. This class can contain all
//ODBC specific code and SQL statements. 
//The client is thus shielded from knowing 
//these implementation details.

public class ODBCCursoDAOP10 implements CursoDAOP10 {

public ODBCCursoDAOP10() {
 // initialization 
}

// The following methods can use
// CloudscapeDAOFactory.createConnection() 
// to get a connection as required

public int insertAccount() {
 // Implement insert Account here.
 // Return newly created Account number
 // or a -1 on error
}

public boolean deleteAccount() {
 // Implement delete Account here
 // Return true on success, false on failure
}

public CursoP10 findAccount() {
 // Implement find a Account here using supplied
 // argument values as search criteria
 // Return a Transfer Object if found,
 // return null on error or if not found
}

public boolean updateAccount() {
 // implement update record here using data
 // from the AccountData Transfer Object
 // Return true on success, false on failure or
 // error
}

public RowSet selectAccountsRS() {
 // implement search Accounts here using the
 // supplied criteria.
 // Return a RowSet. 
}

public Collection selectAccountsTO() {
 // implement search Accounts here using the
 // supplied criteria.
 // Alternatively, implement to return a Collection 
 // of Transfer Objects.
}
//...
}
